package com.example.demo.config;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class GlobalContextHolder {

    private static ThreadLocal<String> threadLocal = new ThreadLocal<>();


    public static void put (String datasource) {
        threadLocal.set(datasource);
    }

    public static void remove () {
        threadLocal.remove();
    }

    public static ThreadLocal<String> getThreadLocal () {
        return threadLocal;
    }
}
